package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author long
 * @since 2024-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_location_category")
public class LocationCategoryDo extends Model<LocationCategoryDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "postcode", type = IdType.AUTO)
    private String postcode;

    @TableField("category")
    private String category;

    @TableField("jis5")
    private String jis5;

    @TableField("area")
    private String area;

    @TableField("city")
    private String city;

    @TableField("type")
    private String type;

    @TableField("type_code")
    private String typeCode;

    @Override
    protected Serializable pkVal() {
        return this.postcode;
    }

}
